package es.cea.web;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


@WebServlet("/MiAplication")
public class SuperServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		System.out.println("Pasando el GET");
		String nombre = request.getParameter("nombreUsuario");
		String clave = request.getParameter("claveUsuario");
		System.out.println("Nombre= "+nombre);
		System.out.println("Clave= "+clave);
		
		PrintWriter writer = response.getWriter();
		writer.println("<html><body>");
		writer.println("<font size="+20+">");
		writer.println(nombre);writer.println("<BR>");
		writer.println(clave);
		writer.println("</font>");
		writer.println("</body></html>");
	}

	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

	}

}
